<!--
*@Author: QWP
*@Description: 查询的操作按钮
*@Date: 2024-07-08 14:20:00
-->
<template>
  <a-col flex="1">
    <a-row justify="end">
      <a-space>
        <u-icon-button itype="add" @click="emits('click', 'add')">新增</u-icon-button>
        <u-icon-button itype="edit" @click="emits('click', 'edit')">修改</u-icon-button>
        <u-icon-button itype="delete" @click="emits('click', 'delete')">删除 </u-icon-button>
        <slot></slot>
      </a-space>
    </a-row>
  </a-col>
</template>

<script lang='ts' setup>
defineOptions({
  name: 'u-search-edit-button'
})

interface Props {
  hides: string[]
}
withDefaults(defineProps<Props>(), {
  hides: []
})

const emits = defineEmits(['click'])

</script>